package com.quanyan.place.constants;

/**
 * Created by Administrator on 2014/12/6.
 */
public class PlaceConstants {

    //字典：日期类型
    public static final String DICT_TIME_TIME_WORKDAY = "2001"; // 工作日
    public static final String DICT_TIME_TIME_WEEKEND = "2002"; //非工作日
    public static final String DICT_TYPE_21 = "21";  // 经营类型
    public static final String DICT_TYPE_18 = "18";  // 足球场地规模
    public static final String DICT_TYPE_31 = "31";  // 篮球场地规模
    public static final int SOURCE_ADMIN_APP = 1; // 来源：原APP管理后台销售录入

    public static final int SOURCE_PLACE_BUSINESS = 2; // 来源：商务场馆

    /**
     * 中国经纬度范围
     */
    public static final Double CHINA_MAX_LAT = 54d;
    public static final Double CHINA_MIN_LAT = 3d;
    public static final Double CHINA_MAX_LNG = 136d;
    public static final Double CHINA_MIN_LNG = 74d;

    /**
     * 场馆购买方式:整馆购买
     */
    public static final Integer BUY_TYPE_WHOLE = 1;

    /**
     * 场馆购买方式:包片购买
     */
    public static final Integer BUY_TYPE_GROUP = 2;

    /**
     * 场馆购买方式:时段购买
     */
    public static final Integer BUY_TYPE_TIME = 3;

    // 增加两种时段买入
    //买入方式：时段买入（真包时）
    public static final Integer BUY_TYPE_TRUE_TIME = 4;

    //买入方式：时段买入（假包时）
    public static final Integer BUY_TYPE_FALSE_TIME = 5;

    //是否可以售卖 0：可以售卖 1：不可以售卖
    public static final Integer IS_SALE = 0;
    public static final Integer IS_NOT_SALE = 1;


    //订场计划状态
    public static final Byte PLACE_PREORDER_STATUS = 1;      //1：没有预定
    public static final Byte PLACE_LOCk_STATUS = 2;          //2：正在锁定
    public static final Byte PLACE_ORDER_STATUS = 3;        //3：已经预定
    public static final Byte PLACE_BACKGROUND_STATUS = 4;    // 4：后台锁定


    //订单状态
    public static final Byte ORDER_PREPAY_STATUS = 1;   //1：待付款
    public static final Byte ORDER_CLOSE_STATUS = 2;     //2：已关闭
    public static final Byte ORDER_PAYED_STATUS = 3;       //3：已付款
    public static final Byte ORDER_REFUNDING_STATUS = 4;    //4：退款中
    public static final Byte ORDER_REFUND_STATUS = 5;         //5：已退款
    public static final Byte ORDER_COMPLETE_PAY_STATUS = 6;  //6：已完成
    
    //订单退款失败
    public static final Byte ORDER_REFUND_FAIL_STATUS = 7;//退款失败

    //支付状态
    public static final Byte NOT_PAY_STATUS = 1;   //1：未支付
    public static final Byte PAY_STATUS = 2;       // 2：已支付
    public static final Byte REFUNDING_STATUS = 3; //3：已退款
    public static final Byte REFUNDING_EXCEPTION_STATUS = 4; //4：异常退款

    //订单是否有效
    public static final Byte IS_ORDER_EFFECTIVE_YES=1;
    public static final Byte IS_ORDER_EFFECTIVE_NO=0;
    //用户场地预定的最大未支付订单条数的默认值
    public static final Integer PLACE_PLAN_MAX_PAYING = 2;

    //用户每天场地退订的最大订单条数的默认值
    public static final Integer PLACE_PLAN_MAX_REFUND = 2;

    //用户每天场地关闭的最大订单条数的默认值
    public static final Integer PLACE_PLAN_MAX_CLOSE = 10;

    //一次可预定最大的时段总数的默认值
    public static final Integer PLACE_ALL_ORDER_MAX_TIME = 8;

    //一次可预定最大的时段总数的默认值
    public static final Integer PLACE_ONCE_ORDER_MAX_TIME = 4;

    //提前退订小时的默认值
    public static final Integer PLACE_UNSUBSCRIBE_TIME = 24;

    //场馆图标类型
    public static final Byte PLACE_LABEL_TYPE = 5;

    //订单超时时间

    public static final Long ORDER_EXPIRED_TIME = 10 * 60 * 1000L;

    //一次处理订单过期数据的大小
    public static final int ORDER_EXPIRED_SIZE = 50;

    //订单状态处理
    public static final Integer ORDER_CANCEL_OPERATE = 1;
    public static final Integer ORDER_COMPLETE_OPERATE = 2;
    public static final Integer ORDER_UNSUBSCRIBE_OPERATE = 3;//申请退款
    public static final Integer ORDER_COMPLETE_UNSUBSCRIBE_OPERATE = 4;
    public static final Integer ORDER_CANCEL_TO_UNSUBSCRIBE_OPERATE = 5;
    public static final Integer ORDER_PAY_CONFIRM_OPERATE = 6;//支付完成确认

    //订单状态处理的用户类型
    public static final Integer ORDER_OPERATE_APPUSER = 1;
    public static final Integer ORDER_OPERATE_ADMINUSER = 2;

    //开场前4小时退订
    public static final double MAX_UNSUBSCRIBE_TIME = 4;

    //金额类型
    public static final Byte DEBIT_TYPE = 1;    //收入类型
    public static final Byte CREDIT_TYPE = 2;   //支出类型
    public static final Byte CANCEL_TYPE = 3;   //取消类型

    //海域划分 1：公海 2：私海
    public static final Byte SEA_AREA_TYPE_PUBLIC = 1;
    public static final Byte SEA_AREA_TYPE_PRIVATE = 2;

    //业务编码
    public static final String SERVICE_CODE = "service.place";
    //评论场馆送积分业务编码
    public static final String COMMENT_SERVICE_CODE = "PLACE_COMMENT_CODE";
    //供应商提现业务编码
    public static final String PLACE_SUPPLIER_EXTRACT_CODE = "PLACE_SUPPLIER_EXTRACT_CODE";


    public static final String PLACE_PROMOTE_EXTRACT_CODE = "PLACE_PROMOTE_EXTRACT_CODE";

    //支付类型
    public static final Integer PAY_WAY_SCENEPAY = 0; //现场支付
    public static final Integer PAY_WAY_ALIPAY = 1; //支付宝
    public static final Integer PAY_WAY_WEICHAT = 2; //微信支付
    public static final Integer PAY_WAY_WEICHATH5 = 3; //微信公众号支付
    public static final Integer PAY_WAY_UNION_PAY = 4; //银联支付
    public static final Integer PAY_WAY_APPLE_PAY = 5; //apple pay
    public static final Integer PAY_WAY_FOR_FREE = 6; //免费
    public static final Integer PAY_WAY_FOR_AGES = 7; //鸟蛋
    public static final Integer PAY_WAY_FOR_SHELL = 8; //蛋壳
    public static final Integer PAY_WAY_FOR_OTHER = 9; //其他抵扣
    public static final Integer PAY_WAY_FOR_CARD = 10; //会员卡
    public static final Integer PAY_WAY_FOR_COUPON = 11; //优惠券
    public static final Integer PAY_WAY_FOR_WEB_ALIPAY = 14; //网页版支付宝
    public static final Integer PAY_WAY_FOR_WEIXIN_APPLET = 15; //微信小程序
    public static final Integer PAY_WAY_FOR_UNION_POS_PAY = 36; //银联pos支付
    /** 默认定价周期(2周) */
    public static final Integer DEFAULT_PRICE_WEEK_PERIOD = 2;

    public static final Integer DEFAULT_PERMIT_REFUND_HOUR = 4;

    public static final Byte CONTAIN_OTHER_DATE = 0;


    public static final Byte YES = 1;
    public static final Byte NO = 0;


    public static final String PLACE_BUSINESS_CODE = "A";
    public static final String PLACE_SYSTEM_CODE = "E";
    public static final String PLACE_REFUND_CODE = "R";//场馆系统退款单号业务编码
    public static final String PLACE_INPUT_INVENTORY_CODE = "I";//入库
    public static final String PLACE_CHECK_INVENTORY_CODE = "C";//盘点
    

    public static final Integer PAYTIMEOUT = 10;
    public static final Integer PAYTIMEOUT_MINUTE = 1;

    //注册支付类型前缀
    public static final String BUSINESS_CODE_PAYINFO_PREFIX = "PAYINFO"; //通用支付前缀

    public static final String PLACE_GROUP_ORDER_PAY = "PLACE_GROUP_ORDER_PAY"; //Mq队列场馆支付订单GroupId.
    public static final String PLACE_INSTANCE_ORDER_PAY = "PLACE_INSTANCE_ORDER_PAY"; //Mq队列场馆支付订单实例.
    public static final String PLACE_TOPIC = "PLACE_TOPIC"; //场馆topicId
    public static final String PLACE_TAG = "PLACE_TAG"; //场馆tag

    public static final String PLACE_GROUP_ORDER_REFUND = "PLACE_GROUP_ORDER_REFUND"; //Mq队列场馆退款订单GroupId.
    public static final String PLACE_INSTANCE_ORDER_REFUND = "PLACE_INSTANCE_ORDER_REFUND"; //Mq队列场馆退款订单实例.


    public static final Double COMMENT_DEFAULT_VALUE = 5d;//场馆评价默认分数
    //redis中的key后缀 存储用户收藏的场馆， key的格式：redis:place:uid:userCollectRedisKey
    public static final String USER_COLLECT_REDIS_KEY = ":userCollectRedisKey";
    //场馆是否有视频、达人活动、俱乐部及俱乐部活动
    public static final String PLACE_VIDEO_CLUB_MASTER_KEY = ":placeVideoClubMasterKey";

    //支付下单渠道
    public static final Integer PAY_CHANNEL_ID = 1; //默认渠道

    //开单类型
    public static final int BILLING_TYPE = 0;
    //包场类型
    public static final int PRIVATE_USE_TYPE = 1;


    public static final String PLACE_BOOKING_CODE = "PLACE_BOOKING_CODE"; //场馆预定业务编码

    public static final String ORDER_OPERATE_KEY = "41F3CB02CCA345CD924EFBAFDDE86394"; //订单状态处理调用权限的key（订单支付完成以及退款完成使用）




    public static final Byte SOURCE_TYPE_COMMONPAY = 1; //普通支付

    public static final Byte SOURCE_TYPE_SCENEPAY = 2; //现场支付

    public static final Byte SOURCE_TYPE_AUCTIONPAY = 3; //竞拍支付

    public static final Byte SOURCE_TYPE_SPORT = 4; //约运动支付

    public static final Byte SOURCE_TYPE_MEMBERCARD = 6;//会员卡支付

    public static final Integer SOLR_TYPE_QUERY = 1;//1；开启solr查询 2：直接查询数据库
    public static final Integer DB_TYPE_QUERY = 2;

    //场馆订单redis缓存队列前缀
    public static final String PLACE_ORDER_CACHE_QUEUE_PREFIX = "PLACE_ORDER_QUEUE_";

    /** 场馆信息同步solr队列前缀 */
    public static final String PLACE_SYNC_SOLR_PREFIX = "PLACE_SYNC_SOLR_";

    //职称   1 商务总经理，2，区域经理，3城市经理，4商务主管，5，商务代表
    public static  final Integer TITLE_BUSSINESS_REPRESENT =5;
    public static final  Integer TITLE_BUSSINESS_DIRECTOR =4;
    public static final  Integer TITLE_BUSSINESS_CITY_MANAGER =3;
    public static final  Integer TITLE_BUSSINESS_AREA_MANEGER =2;
    public static final  Integer TITLE_BUSSINESS_GENERAL_MANEGER =1;

    //签约  1签约， 0,未签约  2，断约
    public static final Byte IS_SIGN_NO=0;
    public static final Byte IS_SIGN_YES=1;
    public static final Byte IS_SIGN_BREAK=2;

    //商务代表：1有效，0无效
    public static final Byte IS_EFFECTIVE_YES=1;
    public static final Byte IS_EFFECTIVE_NO=0;

    //场馆锁定天数：默认45天
    public static final Integer LOCK_DAYS=45;
    public static final Integer UNLOCK_DAYS=90;


    /*//场馆签订类型 1 整馆 2 包片 3 时段
    public static final Integer PLACE_SIGN_TYPE_ALL = 1;
    public static final Integer PLACE_SIGN_TYPE_SLICE = 2;
    public static final Integer PLACE_SIGN_TYPE_TIMES = 3;*/

    // 拜访结果：1（无效拜访，无效），2,（谈判（有效），3，提案（有效），4，签约（有效）,5 录入场馆(新有效).
    public static final Integer PLACE_VISIT_RESULT_INVALID = 1;
    public static final Integer PLACE_VISIT_RESULT_TALKS = 2;
    public static final Integer PLACE_VISIT_RESULT_PROPOSAL = 3;
    public static final Integer PLACE_VISIT_RESULT_SIGN = 4;
    public static final Integer PLACE_VISIT_RESULT_NEW_EFFECTIVE = 5;

    //延长场馆锁定天数
    public static final Integer PLACE_DELAY_VALID_DAYS=30;

    //场馆分享的链接地址
    public static final String PLACE_SHARE_URL ="http://porder.quncaotech.com/h5/book/share";


    //场馆活动类型
    public static final Byte PLACE_ACTIVITY_TYPE = 1;

    //场馆比赛类型
    public static final Byte PLACE_MATCH_TYPE = 2;

    //场馆没有比赛以及活动
    public static final Byte PLACE_NONE_TYPE = 0;

    public static final Integer SOLR_INDEX_DAYS = 14;
    //1 销售计划id 2 场馆id
    public static final Integer SOLR_INDEX_PLAN = 1;
    public static final Integer SOLR_INDEX_PLACE = 2;

   //场馆项目: 1，篮球， 2，羽毛球  3，足球   4，网球
    public static final Integer PLACE_CATEGORY_ONE=1;
    public static final Integer PLACE_CATEGORY_TWO=2;
    public static final Integer PLACE_CATEGORY_THREE=3;
    public static final Integer PLACE_CATEGORY_FOUR=4;

    public static final String PLACE_GROUP_ORDER_PRODUCER = "PLACE_GROUP_ORDER_PRODUCER"; //Mq队列场馆订单生产者组
    public static final String PLACE_INSTANCE_ORDER_PRODUCER = "PLACE_INSTANCE_ORDER_PRODUCER"; //Mq队列场馆生产者实例

    public static final String PLACE_GROUP_ORDER_CANCEL_TO_REFUND = "PLACE_GROUP_ORDER_CANCEL_TO_REFUND"; //Mq队列场馆关闭转退款订单GroupId.
    public static final String PLACE_INSTANCE_ORDER_CANCEL_TO_REFUND = "PLACE_INSTANCE_ORDER_CANCEL_TO_REFUND"; //Mq队列场馆关闭转退款订单实例.

    public static final String PLACE_GROUP_ORDER_CLOSE = "PLACE_GROUP_ORDER_CLOSE"; //Mq队列场馆关闭订单GroupId.
    public static final String PLACE_INSTANCE_ORDER_CLOSE = "PLACE_INSTANCE_ORDER_CLOSE"; //Mq队列场馆关闭订单实例.

    /**  场馆附件： 图片 */
    public static final byte PLACE_ATTACH_IMAGE = 1;

    /**  场馆附件： 音频 */
    public static final byte PLACE_ATTACH_AUDIO = 2;

    /**  场馆附件： 视频 */
    public static final byte PLACE_ATTACH_VIDEO = 3;

    public static final String PLACE_GROUP_PRODUCER = "PLACE_GROUP_PRODUCER"; //场馆生产者
    public static final String PLACE_INSTANCE_PRODUCER = "PLACE_INSTANCE_PRODUCER"; //场馆生产者

    public static final String PLACE_GROUP_CONSUMER = "PLACE_GROUP_CONSUMER"; //场馆消费者
    public static final String PLACE_INSTANCE_CONSUMER = "PLACE_INSTANCE_CONSUMER"; //场馆消费者
    public static final String APP_PAY_MEMBERCARD = "APP支付会员卡";

    public static Integer LOG_TYPE_PLACE = 1;       // 场馆
    public static Integer LOG_TYPE_PLACE_UNIT = 2;  // 场地
    public static Integer LOG_TYPE_PLACE_ORDER = 3; // 场馆订单
    public static Integer LOG_TYPE_PLACE_PRICE = 4; // 销售计划
    public static Integer LOG_TYPE_PLACE_CONTRACT = 5; // 场馆合同
    public static Integer LOG_TYPE_PLACE_MEMBER = 6; // 场馆会员

    public static final String PLACE_MEMBER_CARD_TYPE = "9998";//场馆会员卡类型


    //合同状态 1，未执行 ， 2 已执行，3 已中止，4  已结束 5 已废弃
    public static final Integer PLACE_CONTRACT_UNEXECUTED=1;
    public static final Integer PLACE_CONTRACT_EXECUTED=2;
    public static final Integer PLACE_CONTRACT_STOP=3;
    public static final Integer PLACE_CONTRACT_END=4;
    public static final Integer PLACE_CONTRACT_DELETE=5;

    //买入方式：包片买入 2; 整馆买入 1;时段买入 3;
    public static final Integer PLACE_CONTRACT_ZHENGGUAN=1;
    public static final Integer PLACE_CONTRACT_BAOPIAND=2;
    public static final Integer PLACE_CONTRACT_SHIDUAN=3;

    //合同是否审批：未审批 0; 已审批 1;
    public static final Integer PLACE_CONTRACT_VERIFY_NO=0;
    public static final Integer PLACE_CONTRACT_VERIFY_YES=1;


    public static final Integer PLACE_MEMBER_CARD_TYPE_AVAILABLE_ALL = 0;//场馆会员全部可用时段
    public static final Integer PLACE_MEMBER_CARD_TYPE_AVAILABLE_PART = 1;//场馆会员指定可用时段

    public static final Integer PLACE_MEMBER_CARD_TYPE_NO_DISCOUNT = 100;//场馆会员无折扣标识

    public static final byte PLACE_MEMBER_CARD_TYPE_STATUS_NO = 0;//场馆会员类型状态  不可用
    public static final byte PLACE_MEMBER_CARD_TYPE_STATUS_YES = 1;//场馆会员类型状态  可用

    public static final byte PLACE_MEMBER_CARD_TYPE_GENERAL_MEMBER = 1;//普通会员
    public static final byte PLACE_MEMBER_CARD_TYPE_BARGAINING_MEMBER = 2;//议价会员

    public static final byte PLACE_MEMBER_CARD_OP_HISTORY_NO = 0;//场馆会员交易明细  无效
    public static final byte PLACE_MEMBER_CARD_OP_HISTORY_YES = 1;//场馆会员交易明细  有效

    //1:开通会员 2:消费 3:退款 4:调整余额',5:充值，6：调整次卡,,7:调整有效期, 8:会员卡注销
    public static final Integer PLACE_MEMBER_CARD_OP_HISTORY_SRC_OPEN = 1;
    public static final Integer PLACE_MEMBER_CARD_OP_HISTORY_SRC_CONSUMER = 2;
    public static final Integer PLACE_MEMBER_CARD_OP_HISTORY_SRC_REFUND = 3;
    public static final Integer PLACE_MEMBER_CARD_OP_HISTORY_SRC_ADJUST = 4;
    public static final Integer PLACE_MEMBER_CARD_OP_HISTORY_SRC_RECHARGE = 5;
    public static final Integer PLACE_MEMBER_CARD_OP_HISTORY_SRC_OPCARDCOUNT = 6;
    public static final Integer PLACE_MEMBER_CARD_OP_HISTORY_SRC_OPDEADTIME = 7;
    public static final Integer PLACE_MEMBER_CARD_OP_HISTORY_SRC_LOGOFF = 8;




    /** 会员状态： 正常*/
    public static Byte PLACE_MEMBER_STATUS_NORMAL = 1;
    /** 会员状态： 冻结*/
    public static Byte PLACE_MEMBER_STATUS_FROZEN = 0;

    /** 会员卡类型： 储值卡*/
    public static Byte PLACE_MEMBER_CARD_TYPE_VALUE = 1;
    /** 会员卡类型： 折扣卡*/
    public static Byte PLACE_MEMBER_CARD_TYPE_DISCOUNT = 2;
    /** 会员卡类型： 储值折扣卡*/
    public static Byte PLACE_MEMBER_CARD_TYPE_VALUE_DISCOUNT = 3;
    /** 会员卡类型： 次卡*/
    public static Byte PLACE_MEMBER_CARD_TYPE_NUMBER = 4;

    public static Integer PLACE_MEMBER_CARD = 4;

    /** 会员卡状态： 正常*/
    public static Byte PLACE_MEMBER_CARD_STATUS_NORMAL = 1;

    /** 会员卡状态： 注销*/
    public static Byte PLACE_MEMBER_CARD_STATUS_CANCEL = 0;

    /** 会员卡状态： 审核中（待审核） */
    public static Byte PLACE_MEMBER_CARD_STATUS_TO_AUDIT = 2;

    /** 会员卡状态： 审核失败 */
    public static Byte PLACE_MEMBER_CARD_STATUS_AUDIT_FAIL = 3;

    /** 会员卡状态： 挂失*/
    public static Byte PLACE_MEMBER_CARD_STATUS_LOSS = 4;


    //场馆会员流水表消费类型(支出）
    public static Byte PLACE_MEMBER_HISTORY_TYPE_CONSUMER = 0;
    //场馆会员流水表充值类型(收入）
    public static Byte PLACE_MEMBER_HISTORY_TYPE_RECHARGE = 1;

    //会员卡可用
    public static Byte CARD_ENABLE = 1;
    //会员卡余额充足，会员卡不在使用时间内
    public static Byte CARD_EXPIRED = 2;
    //会员卡在使用时间内，会员卡余额不足
    public static Byte CARD_NOT_ENOUGH =3;
    //会员卡余额不足同时不在使用时间内
    public static Byte CARD_EXPIRED_AND_NOT_ENOUGH =3;

    public static int MAX_CARD_TYPE_MONTH = 1200;// 会员卡最大期限 1200个月 100年


    //图片类型
    public static Byte PLACE_CONTENT_TYPE_IMAGE = 1;
    //音频类型
    public static Byte PLACE_CONTENT_TYPE_VOICE = 2;
    //视频类型
    public static Byte PLACE_CONTENT_TYPE_VIDEO =3;

    //场馆dubbo接口请求记录限制数
    public static final Integer PLACE_DUBBO_REQUEST_LIMIT = 30;
    //所有运动类别rediskey
    public static final String PLACE_ALL_CATEGORIES_REDIS_KEY = "ALL_CATEGORIES";

    //用户前缀
    public static String USER_SHARE_PREFIX = "USER_SHARE_PREFIX_";

    //场馆门票最小时段
    public static final double PLACE_OFFSET_TIME = 1;
    //场馆门票状态 -- 可用
    public static final Byte PLACE_TICKET_STATUS_ENABLE = 1;
    //场馆门票状态 -- 停用
    public static final Byte PLACE_TICKET_STATUS_DISABLE = 0;

    //不允许退款的时间戳
    public static final long NOT_UNSUBSCRIBE_TIMESTAMP = 1451577600000L;


    //场馆商品状态  上架：1 下架：2
    public static Integer PLACE_GOODS_STATUS_SALE=1;
    public static Integer PLACE_GOODS_STATUS_UNSALE=2;

    //场馆商品类型  饮料：1 ，羽毛球饰品：2 ，服务：3
    public static Integer PLACE_GOODS_STATUS_DRINK=1;
    public static Integer PLACE_GOODS_STATUS_DECORATE=2;
    public static Integer PLACE_GOODS_STATUS_SERVICE=3;

    //订单类型  0：开单 1：包场 2：门票 3：app开单 4：商品 5:开卡 6:充值  7:购物车
    public static final byte ORDER_USE_BILLING = 0;
    public static final byte ORDER_USE_BLOCK_BOOKING = 1;
    public static final byte ORDER_USE_TICKET = 2;
    public static final byte ORDER_USE_APP_BILLING = 3;
    public static final byte ORDER_USE_GOODS = 4;
    public static final byte ORDER_USE_OPEN_CARD = 5;
    public static final byte ORDER_USE_RECHARGE_CARD = 6;
    public static final byte ORDER_USE_SHOPPING_CART = 7;

    //销售渠道
    /**订单渠道：1：APP，2：微信公众号，3：H5，4：商家端，5：小程序**/
    public static final Integer PLACE_APP_PAY_TYPE = 1;

    public static final Integer PLACE_WX_PAY_TYPE = 2;

    public static final Integer PLACE_H5_PAY_TYPE = 3;

    public static final Integer PLACE_ADMIN_PAY_TYPE = 4;

    public static final Integer PLACE_WEAPP_PAY_TYPE = 5;

    //商家端支付方式
    public static final String PLACE_ADMIN_PAY_WAYS = "26";
    //现金
    public static final String PLACE_ADMIN_PAY_WAYS_CASH = "20";
    //微信扫码
    public static final String PLACE_ADMIN_PAY_WAYS_WXSCAN = "21";
    //pos银行卡（银联) add by tim
    public static final String PLACE_ADMIN_PAY_WAYS_PO_UNIONPAY = "36";
    //支付包扫码
    public static final String PLACE_ADMIN_PAY_WAYS_ALISCAN = "22";
    //银联
    public static final String PLACE_ADMIN_PAY_WAYS_UNIONPAY= "23";
    //与场馆老板结算
    public static final String PLACE_ADMIN_PAY_WAYS_BOSS = "24";
    //与外部公司结算
    public static final String PLACE_ADMIN_PAY_WAYS_OUTSIDE = "25";
    //与公司内部核算
    public static final String PLACE_ADMIN_PAY_WAYS_INNER = "26";
    //对公转账
    public static final String PLACE_ADMIN_PAY_WAYS_COMPANY = "29";
    //赠送
    public static final String PLACE_ADMIN_PAY_WAYS_GIVE = "37";

    //场馆普通会员
    public static final byte PLACE_MEMBER = 1;

    //俱乐部会员
    public static final byte CLUB_MEMBER = 2;

    public static final Byte BUSINESS_MODE_SELF_SUPPORT = 1;  //场馆自营

    public static final Byte BUSINESS_MODE_ASSOCIATED = 2;  //场馆联营

    //订单明细类型
    public static final Integer PLACE_GOODS_TYPE = 1;   //  小商品
    public static final Integer PLACE_OPEN_CARD_TYPE = 2;   //  会员开卡
    public static final Integer PLACE_RECHARGE_CARD_TYPE = 3;   //  会员卡充值

    //盘点状态：0 盘盈，1 盘亏，2 盘平
    public static final Integer PLACE_GOODS_CHECK_ZERO = 0;
    public static final Integer PLACE_GOODS_CHECK_ONE = 1;
    public static final Integer PLACE_GOODS_CHECK_TWO = 2;

    //0:全部,1: '销售',2:'盘盈',3:'盘亏',4:'盘平',5:'入库',6:'退款'，7:'赠送'
    public static final Integer PLACE_GOODS_HISTORY_ZERO = 0;
    public static final Integer PLACE_GOODS_HISTORY_ONE = 1;
    public static final Integer PLACE_GOODS_HISTORY_TWO = 2;
    public static final Integer PLACE_GOODS_HISTORY_THREE = 3;
    public static final Integer PLACE_GOODS_HISTORY_FOUR = 4;
    public static final Integer PLACE_GOODS_HISTORY_FIVE = 5;
    public static final Integer PLACE_GOODS_HISTORY_SIX = 6;
    public static final Integer PLACE_GOODS_HISTORY_SEVEN= 7;



    // 场地类型(组合/基本单元)
    public static final Byte UNIT_TYPE_BASE = 0;
    public static final Byte UNIT_TYPE_COMBINE = 1;

    // 场地组合标志
    public static final Byte UNIT_NOT_COMBINED = 0;
    public static final Byte UNIT_HAS_COMBINED = 1;

    // 1-验证码下发，2-语音，3-普通短信
    public static final Byte PLACE_SMS_TYPE_VALIDCODE = 1;
    public static final Byte PLACE_SMS_TYPE_VOICE = 2;
    public static final Byte PLACE_SMS_TYPE_MESSAGE = 3;
    
    // 0 场馆下架    1 场馆上架
    public static final Integer PLACE_OFF_SHELVES = 0;
    public static final Integer PLACE_SHELVES = 1;

    /**场馆信息缓存过期时间 一天**/
    public static final int PLACE_INFO_CACHE_TIME = 60*60*24;
    /**场馆信息缓存前缀**/
    public static final String CACHE_PLACE_INFO_PREFIX = "CACHE_PLACE_INFO_PREFIX_";
    /**场馆基本信息缓存前缀**/
    public static final String CACHE_PLACE_BASE_INFO_PREFIX = "CACHE_PLACE_BASE_INFO_PREFIX_";
    /**场馆附属信息前缀**/
    public static final String CACHE_PLACE_ATTACH_INFO_PREFIX = "CACHE_PLACE_ATTACH_INFO_PREFIX_";
    
    /**APP下单防止超卖缓存前缀**/
    public static final String PLACE_SALE_UNIT = "Place_Sale_Uint_";

    /**优惠方式 1：鸟蛋 2：优惠券 3:折扣券优惠 4：会员价优惠 5：会员折扣优惠 6：改价**/
    public static final Byte DISCOUNT_TYPE_EGG = 1;
    public static final Byte DISCOUNT_TYPE_COUPON = 2;
    public static final Byte DISCOUNT_TYPE_DISCOUNT_COUPON = 3;
    public static final Byte DISCOUNT_TYPE_MEMBER = 4;
    public static final Byte DISCOUNT_TYPE_DISCOUNT_MEMBER = 5;
    public static final Byte DISCOUNT_TYPE_ADJUST = 6;
    
    /**退款方式 1：全部退;0:部分退**/
    public static final int REFUND_PART=0;
    public static final int REFUND_ALL=1;
    
    /**订单类型  1:订场;2:门票;3:商品**/
    public static final Integer ORDER_TYPE_BOOK = 1;
    public static final Integer ORDER_TYPE_TICKET = 2;
    public static final Integer ORDER_TYPE_GOOD = 3;

    public static final Integer BANNER_POSITION_OPEN = 0;//开
    public static final Integer BANNER_POSITION_CLOSE = 1;//关
    public static final Integer BANNER_POSITION_SHOW = 1;//显示
    public static final Integer BANNER_POSITION_HIDE = 0;//隐藏

    /**标签类型：1：活动标签 **/
    public static final Byte LABEL_TYPE_ONE = 1; // 标签类型：1：活动标签
    /**标签类型：2：服务标签 **/
    public static final Byte LABEL_TYPE_TWO = 2; // 标签类型：2：服务标签
    /**标签类型：2：特色标签 **/
    public static final Byte LABEL_TYPE_THREE = 3; // 标签类型：3：特色标签
}
